-- LINK_TO_UI
-- 跳转界面
require "game/ui/form/setting/UISystemSetting"

return function(uiIndex)
    -- 打开某界面
    if tonumber(uiIndex) == 1 then
        -- 系统公告
        UIMgr.getCurrentScene():removeFormByName("UISystemSetting");
        local uiSystemSetting = UISystemSetting.create(2);
        UIMgr.getCurrentScene():addForm(uiSystemSetting);
    elseif tonumber(uiIndex) == 2 then
        -- 设置界面
        UIMgr.getCurrentScene():removeFormByName("UISystemSetting");
        local uiSystemSetting = UISystemSetting.create();
        UIMgr.getCurrentScene():addForm(uiSystemSetting);
        uiSystemSetting.scrollview:jumpToBottom();
    else
        cclog("error link index input!");
    end
end
